package cn.lutu.lutu.controller;



import cn.lutu.lutu.pojo.entity.AlipayOrder;
import cn.lutu.lutu.service.AlipayOrderService;
import cn.lutu.lutu.utils.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/order")
public class AlipayOrderController {
    @Autowired
    private AlipayOrderService orderService;

    @GetMapping("/list")
    public BaseResult list(){
        List<AlipayOrder> list=orderService.list();
        return BaseResult.success(list);
    }
}
